package first.chapter2.el;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description: 类作用描述
 * @Author: ChenZhiXiang
 * @CreateDate: 2019/5/8 0008 15:54
 * @Version: 1.0
 */
public class ElMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(ElConfig.class);
        ResourcesConfig resourceService = context.getBean(ResourcesConfig.class);
        ResourcesConfig2 resourceService2 = context.getBean(ResourcesConfig2.class);
        resourceService.outputResource();
        resourceService2.d();
        context.close();
    }
}

